<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/day1.css" />
    <script crossorigin="anonymous"
        integrity="sha512-WNLxfP/8cVYL9sj8Jnp6et0BkubLP31jhTG9vhL/F5uEZmg5wEzKoXp1kJslzPQWwPT1eyMiSxlKCgzHLOTOTQ=="
        src="https://lib.baomitu.com/jquery/3.5.1/jquery.js"></script>
</head>

<body>
    <div class="title">day1页面</div>

    <script src="../javascript/day1.js"></script>
    <script>
        window.onload = function () {
            console.log('ajax---->');
            $.get(
                '/api/getUserInfo?userName=mahu', 
                function (data) {
                    console.log('data--->', data);
                }
            )

            $.post(
                '/login.do', 
                { userName: 'mahu', pwd: '123' },
                function (data) {
                    console.log('data--->', data);
                }
            ) 
              
        }
    </script>
</body>

</html>